//
//  OcrScanView.m
//  SmartVisionOCRDemo
//

#import "OcrScanView.h"

@implementation OcrScanView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)awakeFromNib{
    [super awakeFromNib];
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    
    //发送通知，frame改变重新设置检边参数roi
    NSDictionary *info = @{@"scanViewFrame":NSStringFromCGRect(self.frame)};
    [[NSNotificationCenter defaultCenter] postNotificationName:@"ScanViewFrameChangedAndResetRoi" object:nil userInfo:info];
    //NSLog(@"rectChanged =%@", NSStringFromCGRect(self.frame));
    
}
@end
